<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>axios</title>
</head>

<body>
    <script type="text/javascript" src="js/axios.js"></script>
    <script type="text/javascript">
        axios.get('http://localhost:3000/adata').then(function (res) {
            console.log(res);
            console.log(res.data);
        });
    </script>
</body>

</html>